package com.hl.card.credit.pub.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hl.card.credit.pub.dao.AbstractDao;
import com.hl.card.credit.pub.dao.PublicInvoiceDao;
import com.hl.card.credit.pub.entity.PublicInvoice;

//@Service
public class PublicInvoiceService extends AbstractService<PublicInvoice, Integer> {

//	@Autowired
	private PublicInvoiceDao<PublicInvoice, Integer> dao;

	@Override
	protected AbstractDao<PublicInvoice, Integer> getDao() {
		return dao;
	}

	public void addPublicInvoiceBatch(List<PublicInvoice> list) {
		dao.addBatch(list);
	}

	public PublicInvoice queryOne(PublicInvoice publicInvoice) {
		// TODO Auto-generated method stub
		return dao.queryOne(publicInvoice);
	}

}
